package com.wg.emu;

/**
 * Created with IntelliJ IDEA.
 * User: dt
 * Date: 2017/8/1
 * Time: 下午2:55
 */
public enum CodeEnum {

    SUCCESS(4000, "成功"),

    PARAM_INVALIDATE(4001, "不合法参数"),

    FAIL(6000,"业务上失败"),

    ISNOTEXSIT(6001,"不存在"),

    ERROR(9999, "程序错误");



    private int code;
    private String msg;
    CodeEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
